﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IBatisNetDemo.Service
{
    public class Helpers
    {
        private static volatile PersonService _PersonService = null;
        public static PersonService Person()
        {
            if (_PersonService == null)
            {
                lock (typeof(PersonService))
                {
                    if (_PersonService == null) // double-check
                        _PersonService = new PersonService();
                }
            }
            return _PersonService;
        }
    }

}
